var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("BaseModuleUI"),
    a = cc._decorator,
    i = a.ccclass,
    r =
        (a.property,
        (function (e) {
            function t() {
                return (null !== e && e.apply(this, arguments)) || this;
            }
            return (
                __extends(t, e),
                (t.prototype.update = function () {
                    var e = this.node.children;
                    e.sort(function (e, t) {
                        return t.y - e.y;
                    });
                    for (var t = 0; t < e.length; t++) e[t].zIndex = t;
                }),
                __decorate([i], t)
            );
        })(n.default));
o.default = r;
